package com.sam.gui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.webkit.JavascriptInterface;

import com.sam.gui.base.BaseWebActivity;
import com.sam.ui.base.activity.BaseActivity;

/**
 * Created by Administrator on 2015-10-27.
 */
public class MyPrescriptionWebActivity extends BaseWebActivity {

    @Override
    protected void initView() {
        super.initView();
        setContentUrl("index.php?c=user&a=user_cf");
    }

    @JavascriptInterface
    public void address_add(){
        Intent intent = new Intent(this, AddMyAddressWebActivity.class);
        startActivity(intent);
    }

    @JavascriptInterface
    public void view_cf(String mr_id){
        Intent intent = new Intent(this, PrescriptionDetailsWebActivity.class);
        Bundle bundle = new Bundle();
        bundle.putString("mr_id", mr_id);
        intent.putExtras(bundle);
        startActivity(intent);
    }


    @JavascriptInterface
    public void submitSuccess(){
        finish();
    }
}
